﻿
using System;
using System.Collections.Generic;
namespace sharpxbot.Core.Connection
{
    /// <summary>
    /// Keeps IConnection alive
    /// </summary>
    public interface IConnectionManager
    {
        /// <summary>
        /// Gets all sessions associated with given connection manager
        /// </summary>
        IList<ISession> Sessions { get; }

        /// <summary>
        /// Closes current connection for given ammount of time and the reconnects to server
        /// </summary>
        /// <param name="delay">Delay</param>
        void SuspendConnection(TimeSpan delay);
    }
}
